package com.ls.lserp.modules.setting.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.ls.lserp.common.persistence.DataEntity;
import com.ls.lserp.modules.common.entity.UploadFile;
import com.ls.lserp.modules.common.entity.Material;

public class InventoryWarning extends DataEntity<InventoryWarning> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
    
    // I_MATERIAL_P.原辅料信息_原辅料信息管理表
	private Material material;

 	// 物料售价关联表 I_MATERIAL_PRICE_S
    // 主键Id
 	private long            materialPriceId;
 	
 	// 店铺ID
 	private long            shopId;
 	
 	// 关联物料表Id
 	private long            materialId;
 	
 	// 售价
 	private BigDecimal      materialSalePrice;
 	
 	
 	// 原辅料出厂价 关联表 I_MATERIAL_COST_S
 	private BigDecimal MaterialPurchasePrice;
 
	
	// 上传文件
	private UploadFile  uploadFile;
	
	// 预警数量  I_MATERIAL_ALERT_S
	// 原辅料预警ID
	private long materialAlertId;
	
	// 服装加工厂ID
	private long factoryId;
	
	// 原辅料预警数量(10,3)
	private String materialAlertQuantity;
	
	// 材料最少采购数量
	private BigDecimal materialLeastQuantity;
	
	// 预警开始日期
	private Date materialAlertStartDate;
	
	// 预警结束日期
	private Date materialAlertEndDate;
		
	// 新建或编辑区分
	private String alertFlag;
	
	// 库存数量 I_INVENTORY_MATERIAL_P
	// 库存数量Id
	private long inventoryMaterialId;
	
	// 库存数量
	private BigDecimal materialQuantity;
	
	// 单位
	private String materialUnitCd;

	// 时间
	private Date dateTime;
	
	//物料编码
	private String materialCode;
	
	//客户名称
	private String customerName;
	
	
	

	/**
	 * @return the materialUnitCd
	 */
	public String getMaterialUnitCd() {
		return materialUnitCd;
	}

	/**
	 * @param materialUnitCd the materialUnitCd to set
	 */
	public void setMaterialUnitCd(String materialUnitCd) {
		this.materialUnitCd = materialUnitCd;
	}

	/**
	 * @return the materialCode
	 */
	public String getMaterialCode() {
		return materialCode;
	}

	/**
	 * @param materialCode the materialCode to set
	 */
	public void setMaterialCode(String materialCode) {
		this.materialCode = materialCode;
	}

	/**
	 * @return the customerName
	 */
	public String getCustomerName() {
		return customerName;
	}

	/**
	 * @param customerName the customerName to set
	 */
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	/**
	 * @return the dateTime
	 */
	public Date getDateTime() {
		return dateTime;
	}

	/**
	 * @param dateTime the dateTime to set
	 */
	public void setDateTime(Date dateTime) {
		this.dateTime = dateTime;
	}

	/**
	 * @return the alertFlag
	 */
	public String getAlertFlag() {
		return alertFlag;
	}

	/**
	 * @param alertFlag the alertFlag to set
	 */
	public void setAlertFlag(String alertFlag) {
		this.alertFlag = alertFlag;
	}

	/**
	 * @return the materialLeastQuantity
	 */
	public BigDecimal getMaterialLeastQuantity() {
		return materialLeastQuantity;
	}

	/**
	 * @param materialLeastQuantity the materialLeastQuantity to set
	 */
	public void setMaterialLeastQuantity(BigDecimal materialLeastQuantity) {
		this.materialLeastQuantity = materialLeastQuantity;
	}

	public Material getMaterial() {
		return material;
	}

	public void setMaterial(Material material) {
		this.material = material;
	}

	public long getMaterialPriceId() {
		return materialPriceId;
	}

	public void setMaterialPriceId(long materialPriceId) {
		this.materialPriceId = materialPriceId;
	}

	public long getShopId() {
		return shopId;
	}

	public void setShopId(long shopId) {
		this.shopId = shopId;
	}

	public long getMaterialId() {
		return materialId;
	}

	public void setMaterialId(long materialId) {
		this.materialId = materialId;
	}

	public BigDecimal getMaterialSalePrice() {
		return materialSalePrice;
	}

	public void setMaterialSalePrice(BigDecimal materialSalePrice) {
		this.materialSalePrice = materialSalePrice;
	}

	public BigDecimal getMaterialPurchasePrice() {
		return MaterialPurchasePrice;
	}

	public void setMaterialPurchasePrice(BigDecimal materialPurchasePrice) {
		MaterialPurchasePrice = materialPurchasePrice;
	}

	public UploadFile getUploadFile() {
		return uploadFile;
	}

	public void setUploadFile(UploadFile uploadFile) {
		this.uploadFile = uploadFile;
	}

	public long getMaterialAlertId() {
		return materialAlertId;
	}

	public void setMaterialAlertId(long materialAlertId) {
		this.materialAlertId = materialAlertId;
	}

	public long getFactoryId() {
		return factoryId;
	}

	public void setFactoryId(long factoryId) {
		this.factoryId = factoryId;
	}
	

	/**
	 * @return the materialAlertQuantity
	 */
	public String getMaterialAlertQuantity() {
		return materialAlertQuantity;
	}

	/**
	 * @param materialAlertQuantity the materialAlertQuantity to set
	 */
	public void setMaterialAlertQuantity(String materialAlertQuantity) {
		this.materialAlertQuantity = materialAlertQuantity;
	}

	public Date getMaterialAlertStartDate() {
		return materialAlertStartDate;
	}

	public void setMaterialAlertStartDate(Date materialAlertStartDate) {
		this.materialAlertStartDate = materialAlertStartDate;
	}

	public Date getMaterialAlertEndDate() {
		return materialAlertEndDate;
	}

	public void setMaterialAlertEndDate(Date materialAlertEndDate) {
		this.materialAlertEndDate = materialAlertEndDate;
	}

	public long getInventoryMaterialId() {
		return inventoryMaterialId;
	}

	public void setInventoryMaterialId(long inventoryMaterialId) {
		this.inventoryMaterialId = inventoryMaterialId;
	}

	public BigDecimal getMaterialQuantity() {
		return materialQuantity;
	}

	public void setMaterialQuantity(BigDecimal materialQuantity) {
		this.materialQuantity = materialQuantity;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	
	

	
}